//
//  OALazyGetterObject.h
//  OASDK_Works
//
//  Created by ChenJie on 3/28/20.
//  Copyright © 2020 Mist. All rights reserved.
//

#ifndef OALazyGetterObject_h
#define OALazyGetterObject_h

#import "OALazyGetterBase.h"

#define OAGetMutableArray(_name...) __oa_get_NSMutableArray__(_name)
#define OAGetMutableDictionary(_name...) __oa_get_NSMutableDictionary__(_name)

/*
 * NSMutableArray
 */

#define __oa_get_NSMutableArray__(...) \
__oa_get__(NSMutableArray, ^NSMutableArray * (void){ \
    NSMutableArray *array = [NSMutableArray array]; \
    return array; \
}, __VA_ARGS__)


/*
 * NSMutableDictionary
 */

#define __oa_get_NSMutableDictionary__(...) \
__oa_get__(NSMutableDictionary, ^NSMutableDictionary * (void){ \
    NSMutableDictionary *dictionary = [NSMutableDictionary dictionary]; \
    return dictionary; \
}, __VA_ARGS__)


#endif /* OALazyGetterObject_h */
